package com.example.manage.client;

import com.example.api.order.ProductOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 86188
 */
@FeignClient(name = "order-server")
public interface OrderClient {
    /**
     * 新增订单
     *
     * @param order 订单
     * @return
     */
    @RequestMapping(value = "/order/createOrder", method = RequestMethod.POST)
    ProductOrder createOrder(ProductOrder order);
}
